dojo.provide("miaigo.view.GameInfoView");

dojo.require("miaigo.view.BaseView");
dojo.require("dijit._Templated");

dojo.declare(
    "miaigo.view.GameInfoView",
    [miaigo.view.BaseView, dijit._Templated],
    {
	templateString: "<div dojoAttachPoint='containerNode'>This will be the Game Information View</div>",

	_connDefs:
	{
	    inbound:
	    [
		{ event: "onCurrentModelChanged", method: "onGameChanged" }
	    ]
	},

	onGameChanged: function(/* miaigo.model.Game */game)
	{
	    this.containerNode.innerHTML = game.getGameInfo("comment");
	}

    });